/**
 *  @file linearController.h
 *
 *  @date 16-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef LINEARCONTROLLER_H_
#define LINEARCONTROLLER_H_

#include "controller.h"
#include "vector2.h"

namespace si
{
/**
 * A controller that makes a sprite move in a linear fashion.
 */
class LinearController: public si::Controller
{
public:
	LinearController(const Vector2 startPos, const Vector2 speed, Vector2 size);
	virtual void update(const double time);

private:
	Vector2 fSpeed;
};

}

#endif /* LINEARCONTROLLER_H_ */
